How to create a crosstab query using a wizard.





Choose the 'Queries' tab in the Database window, choose the 'New' button, select 'Crosstab Query Wizard' from the list box, choose 'OK', and follow the instructions in the 'Crosstab Query Wizard' dialog boxes.

    1) If the Database window is not active, activate the Database window.
    2) Choose the 'Queries' tab in the Database window.
    < Queries tab >
    3) Choose the 'New' button. (The New Query dialog box appears.)
    4) Select 'Crosstab Query Wizard' from the list box.
    < Select wizard >
    NOTE: There are four wizards: 'Simple Query Wizard', 'Crosstab Query Wizard', 'Find Duplicates Query Wizard', and 'Find UnMatched Query Wizard'.
    5) Choose 'OK'. (The Crosstab Query Wizard dialog box appears.)
    6) Select the table or query containing the fields to include in the crosstab query from the list box.
    NOTE 1: To select from a list of tables only, select the 'Tables' button in the 'View' group. To select from a list of queries only, select the 'Queries' button. To select from a list of BOTH tables and queries, select the 'Both' button.
    < Select table or query >
    NOTE 2: To use fields from more than one table or query, first create a query containing all the fields, then select the query to use when creating the crosstab query.
    7) Choose the 'Next' button.
    8) Select the desired field to use its values as row headings in the select query from the 'Available Fields' list box.
    < Available fields >
    9) Choose the ' > ' button. (The selected field appears in the Selected Fields list box.)
    < > button >
    10) Repeat steps 8) and 9) for each field to be used as a row heading in the crosstab query.
    11) Choose the 'Next' button.
    12) Select the desired field to use its values as the column heading in the select query from the list box.
    < Select field >
    13) Choose the 'Next' button.
    14) Determine the desired calculations for each field:

      a) Select a field from the 'Fields' list box.
      < Fields list box >
      b) Select the desired function to be performed on the selected field from the 'Functions' list box.
      < Functions list box >
      c) (Optional) Repeat steps 14)a) and 14)b) for each field in the 'Fields' list box.

    15) (Optional) Check the 'Yes, include row sums' check box to summarize each row.
    16) Choose the 'Next' button.
    17) Enter a name for the crosstab query in the 'What do you want to name your query?' box.
    < Query name >
    18) Select the desired button for whether to run the query or to modify the query design.
    < Select radio button >
    19) Choose the 'Finish' button. (The query appears in either Datasheet view or Design view, depending on the button selected in step 18).)


Knowledge-Pak Desktop Suite (TM) Edition 5
Copyright (c) 1994-1997 by ServiceWare Inc. Subject to the terms set forth in the end-user license agreement. All rights reserved.



2nd Opinion copyright © 1997 by McAfee Associates.
Subject to the terms set forth in the end-user license agreement. All rights reserved.